const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  // 配置跨域代理
  devServer: {
    proxy: {
      '/api': {
        target: 'http://127.0.0.1:3000',    // 你自己的api接口地址
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/api': '/api/',
        }
      }
    }
  },
  transpileDependencies: true
})
